package com.sz.lk.wingsystem.madapter;

import android.content.Context;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sz.lk.wingsystem.R;
import com.sz.lk.wingsystem.bean.MenuBean;

import java.util.List;

/**
 * author : liuke
 * e-mail : 1012459343@qq.com
 * date   : 2020/12/6 11:11
 * desc   :
 * version: 1.0
 *
 * @author asus
 */
public class MenuAdapter extends BaseQuickAdapter<MenuBean, BaseViewHolder> {

    private Context context;

    public MenuAdapter(@Nullable List<MenuBean> data, Context context) {
        super(R.layout.menu_item, data);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, MenuBean item) {

        helper.setText(R.id.function_name, item.getDescribe());
        helper.setImageResource(R.id.one, item.getResource_id());
    }
} 